/**
 * Created by DevilsEyes on 2016/2/13.
 * ==========================
 *         用户 user
 * ==========================
 * 用于存放用户的数据结构
 *
 */
// db/user.js
'use strict';
var db = require('./db.js').mongoose;
var Schema = db.Schema;

var user_Schema = new Schema({

    id: String,//学号
    class: String,//班级
    password: String,//密码
    secId: String,//md5学号
    secPassword: String,//md5密码
    role: Number,//权限

    name: String,//姓名
    email: String,//邮箱
    nickname: String//昵称
});

var user_Model = db.model("user", user_Schema);
module.exports = user_Model;